package com.hunttown.mes.rpc.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * created by wangjunfu on 2022-03-30 15:35:01
 */
public class MesSaleOrderDTO implements Serializable {
    private Integer id;
    private Integer entId;
    private String orderNo;
    private String orderTitle;
    private String contractNo;
    private String contractDoc;
    private Integer companyId;
    private Integer linkId;
    private String linkName;
    private String linkMobile;
    private Integer receiveProvince;
    private Integer receiveCity;
    private Integer receiveTown;
    private String receiveAddr;
    private Date receiveDate;
    private Integer emergentLevel;
    private Integer produceMode;
    private Integer payWay;
    private Date payDate;
    private BigDecimal amount;
    private Integer operator;
    private Date operateDate;
    private Integer stockStatus;
    private Integer bdConfirm;
    private Integer bomConfirm;
    private Integer testConfirm;
    private Integer markConfirm;
    private Integer tagConfirm;
    private Integer packageConfirm;
    private Integer status;
    private Integer applyId;
    private String remark;
    private Integer adminId;
    private Date createTime;
    private Integer stopFlag;
    private Integer deleteFlag;

    private String companyName;
    private String statusName;
    private String receiveDateSr;
    private String payDateSr;
    private String operatorCn;
    private String operateDateSr;
    private String produceModeName;
    private String emergentLevelName;
    private String payWayName;
    private String stockStatusName;

    private String isUpload;    //上传文件ID集合（这是个固定值）

    //以下内容由Alt+Ins快捷生成

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getEntId() {
        return entId;
    }

    public void setEntId(Integer entId) {
        this.entId = entId;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getOrderTitle() {
        return orderTitle;
    }

    public void setOrderTitle(String orderTitle) {
        this.orderTitle = orderTitle;
    }

    public String getContractNo() {
        return contractNo;
    }

    public void setContractNo(String contractNo) {
        this.contractNo = contractNo;
    }

    public String getContractDoc() {
        return contractDoc;
    }

    public void setContractDoc(String contractDoc) {
        this.contractDoc = contractDoc;
    }

    public Integer getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }

    public Integer getLinkId() {
        return linkId;
    }

    public void setLinkId(Integer linkId) {
        this.linkId = linkId;
    }

    public String getLinkName() {
        return linkName;
    }

    public void setLinkName(String linkName) {
        this.linkName = linkName;
    }

    public String getLinkMobile() {
        return linkMobile;
    }

    public void setLinkMobile(String linkMobile) {
        this.linkMobile = linkMobile;
    }

    public Integer getReceiveProvince() {
        return receiveProvince;
    }

    public void setReceiveProvince(Integer receiveProvince) {
        this.receiveProvince = receiveProvince;
    }

    public Integer getReceiveCity() {
        return receiveCity;
    }

    public void setReceiveCity(Integer receiveCity) {
        this.receiveCity = receiveCity;
    }

    public Integer getReceiveTown() {
        return receiveTown;
    }

    public void setReceiveTown(Integer receiveTown) {
        this.receiveTown = receiveTown;
    }

    public String getReceiveAddr() {
        return receiveAddr;
    }

    public void setReceiveAddr(String receiveAddr) {
        this.receiveAddr = receiveAddr;
    }

    public Date getReceiveDate() {
        return receiveDate;
    }

    public void setReceiveDate(Date receiveDate) {
        this.receiveDate = receiveDate;
    }

    public Integer getEmergentLevel() {
        return emergentLevel;
    }

    public void setEmergentLevel(Integer emergentLevel) {
        this.emergentLevel = emergentLevel;
    }

    public Integer getProduceMode() {
        return produceMode;
    }

    public void setProduceMode(Integer produceMode) {
        this.produceMode = produceMode;
    }

    public Integer getPayWay() {
        return payWay;
    }

    public void setPayWay(Integer payWay) {
        this.payWay = payWay;
    }

    public Date getPayDate() {
        return payDate;
    }

    public void setPayDate(Date payDate) {
        this.payDate = payDate;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public Integer getOperator() {
        return operator;
    }

    public void setOperator(Integer operator) {
        this.operator = operator;
    }

    public Date getOperateDate() {
        return operateDate;
    }

    public void setOperateDate(Date operateDate) {
        this.operateDate = operateDate;
    }

    public Integer getStockStatus() {
        return stockStatus;
    }

    public void setStockStatus(Integer stockStatus) {
        this.stockStatus = stockStatus;
    }

    public Integer getBdConfirm() {
        return bdConfirm;
    }

    public void setBdConfirm(Integer bdConfirm) {
        this.bdConfirm = bdConfirm;
    }

    public Integer getBomConfirm() {
        return bomConfirm;
    }

    public void setBomConfirm(Integer bomConfirm) {
        this.bomConfirm = bomConfirm;
    }

    public Integer getTestConfirm() {
        return testConfirm;
    }

    public void setTestConfirm(Integer testConfirm) {
        this.testConfirm = testConfirm;
    }

    public Integer getMarkConfirm() {
        return markConfirm;
    }

    public void setMarkConfirm(Integer markConfirm) {
        this.markConfirm = markConfirm;
    }

    public Integer getTagConfirm() {
        return tagConfirm;
    }

    public void setTagConfirm(Integer tagConfirm) {
        this.tagConfirm = tagConfirm;
    }

    public Integer getPackageConfirm() {
        return packageConfirm;
    }

    public void setPackageConfirm(Integer packageConfirm) {
        this.packageConfirm = packageConfirm;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getApplyId() {
        return applyId;
    }

    public void setApplyId(Integer applyId) {
        this.applyId = applyId;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getAdminId() {
        return adminId;
    }

    public void setAdminId(Integer adminId) {
        this.adminId = adminId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getStopFlag() {
        return stopFlag;
    }

    public void setStopFlag(Integer stopFlag) {
        this.stopFlag = stopFlag;
    }

    public Integer getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(Integer deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getStatusName() {
        return statusName;
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }

    public String getReceiveDateSr() {
        if (receiveDateSr == null || receiveDateSr.equals("")) {
            SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");

            if (receiveDate == null) {
                return "1990-01-01";
            } else {
                return df.format(new Date(receiveDate.getTime()));
            }
        } else {
            return receiveDateSr;
        }
    }

    public void setReceiveDateSr(String receiveDateSr) {
        this.receiveDateSr = receiveDateSr;
    }

    public String getPayDateSr() {
        if (payDateSr == null || payDateSr.equals("")) {
            SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");

            if (payDate == null) {
                return "1990-01-01";
            } else {
                return df.format(new Date(payDate.getTime()));
            }
        } else {
            return payDateSr;
        }
    }

    public void setPayDateSr(String payDateSr) {
        this.payDateSr = payDateSr;
    }

    public String getOperatorCn() {
        return operatorCn;
    }

    public void setOperatorCn(String operatorCn) {
        this.operatorCn = operatorCn;
    }

    public String getOperateDateSr() {
        if (operateDateSr == null || operateDateSr.equals("")) {
            SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");

            if (operateDate == null) {
                return "1990-01-01";
            } else {
                return df.format(new Date(operateDate.getTime()));
            }
        } else {
            return operateDateSr;
        }
    }

    public void setOperateDateSr(String operateDateSr) {
        this.operateDateSr = operateDateSr;
    }

    public String getProduceModeName() {
        return produceModeName;
    }

    public void setProduceModeName(String produceModeName) {
        this.produceModeName = produceModeName;
    }

    public String getEmergentLevelName() {
        return emergentLevelName;
    }

    public void setEmergentLevelName(String emergentLevelName) {
        this.emergentLevelName = emergentLevelName;
    }

    public String getPayWayName() {
        return payWayName;
    }

    public void setPayWayName(String payWayName) {
        this.payWayName = payWayName;
    }

    public String getStockStatusName() {
        return stockStatusName;
    }

    public void setStockStatusName(String stockStatusName) {
        this.stockStatusName = stockStatusName;
    }

    public String getIsUpload() {
        return isUpload;
    }

    public void setIsUpload(String isUpload) {
        this.isUpload = isUpload;
    }
}